//
//  ListCommunicator.h
//  KoreaFlower
//
//  Created by Nicejinux on 12. 12. 23..
//  Copyright (c) 2012년 Nicejinux. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"
#import "LoadingView.h"
#import "ASIDownloadCache.h"
#import "JSONKit.h"
#import "DBManager.h"
#import "DBSQLQueries.h"
#import "GlobalDefine.h"
#import "CallBackObjectMethodInfo.h"

@interface ListCommunicator : NSObject

@property (strong, nonatomic) ASIHTTPRequest *introReq;
@property (strong, nonatomic) NSMutableArray *flowerListArray;
@property (strong, nonatomic) NSMutableArray *callbackList;
@property (strong, nonatomic) NSDictionary *flowerDic;
@property (strong, nonatomic) LoadingView *indicatorView;
@property (strong, nonatomic) UIActivityIndicatorView *indicator;

+ (ListCommunicator *)sharedInstance;

- (BOOL)storeCDNListToDB:(NSDictionary *)dic;
- (BOOL)storeFlowerListToDB:(NSDictionary *)dic;
- (BOOL)storeUseCategoryToDB:(NSDictionary *)dic;
- (BOOL)storeSaleCategoryToDB:(NSDictionary *)dic;

- (void)requestFlowerList;
- (void)requestFlowerList:(id)target action:(SEL)action isUserInteraction:(BOOL)isUserInteraction;

@end
